#!/bin/bash

docker stop warehouse_analysis

docker rm -f warehouse_analysis

dokcer rmi odd:1.0
docker network disconnect --force bridge warehouse_analysis
docker build -t warehouse_analysis:1.0 .

docker run -d -p 8003:8000 --name warehouse_analysis warehouse_analysis:1.0

echo "----------------- 安装完成 运行测试 ----------------------"
sleep 5
docker exec  warehouse_analysis python -m unittest discover -v

exit
